<template>
  <el-select :value="value" placeholder="请选择" v-bind="config" @change="onchange">
    <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value" />
  </el-select>
</template>

<script>
export default {
  props: {
    value: { type: [String, Number, Boolean], default: '' },
    config: {
      type: Object,
      default() {
        return {}
      }
    },
    options: {
      type: Array,
      default() {
        return []
      }
    }
  },
  data() {
    return {
    }
  },
  methods: {
    onchange(e) {
      this.$emit('input', e)
    }
  }
}
</script>

<style></style>
